package com.wetao.lib_common.bean.response;

import com.google.gson.Gson;
import com.wetao.lib_common.base.Base2Response;

import java.io.Serializable;
import java.util.List;

/**
 * author: zhouyh
 * created on: 2021/6/17 2:42 下午
 * description:错题订正列表数据
 */
public class RevisionExamListInfo extends Base2Response implements Serializable {


    /**
     * data : {"records":[{"examName":"第3课时 并集与交集","publishName":null,"examPublishId":2168,"studentExamId":21813,"examId":7708,"createTime":"2021-02-25 09:52:47","wrongQuestionCount":6,"revisionQuestionCount":11,"state":0},{"examName":"第3课时 并集与交集","publishName":null,"examPublishId":2174,"studentExamId":21769,"examId":7708,"wrongQuestionCount":5,"revisionQuestionCount":11,"state":0}],"total":2,"size":10,"current":1,"pages":1}
     */

    private DataBean data;

    public DataBean getData() {
        return data;
    }

    public static RevisionExamListInfo objectFromData(String str) {

        return new Gson().fromJson(str, RevisionExamListInfo.class);
    }

    public static class DataBean implements Serializable {
        /**
         * records : [{"examName":"第3课时 并集与交集","publishName":null,"examPublishId":2168,"studentExamId":21813,"examId":7708,"createTime":"2021-02-25 09:52:47","wrongQuestionCount":6,"revisionQuestionCount":11,"state":0},{"examName":"第3课时 并集与交集","publishName":null,"examPublishId":2174,"studentExamId":21769,"examId":7708,"wrongQuestionCount":5,"revisionQuestionCount":11,"state":0}]
         * total : 2
         * size : 10
         * current : 1
         * pages : 1
         */

        private Integer total;
        private Integer size;
        private Integer current;
        private Integer pages;
        private List<RecordsBean> records;

        public static DataBean objectFromData(String str) {

            return new Gson().fromJson(str, DataBean.class);
        }

        public Integer getTotal() {
            return total;
        }

        public void setTotal(Integer total) {
            this.total = total;
        }

        public Integer getSize() {
            return size;
        }

        public void setSize(Integer size) {
            this.size = size;
        }

        public Integer getCurrent() {
            return current;
        }

        public void setCurrent(Integer current) {
            this.current = current;
        }

        public Integer getPages() {
            return pages;
        }

        public void setPages(Integer pages) {
            this.pages = pages;
        }

        public List<RecordsBean> getRecords() {
            return records;
        }

        public void setRecords(List<RecordsBean> records) {
            this.records = records;
        }

        public static class RecordsBean implements Serializable {
            /**
             * examName : 第3课时 并集与交集
             * publishName : null
             * examPublishId : 2168
             * studentExamId : 21813
             * examId : 7708
             * createTime : 2021-02-25 09:52:47
             * wrongQuestionCount : 6   //错题数量
             * revisionQuestionCount : 11   //订正数量
             * state :
             * isRevision:0 0未订正  1已订正
             */

            private String examName;
            private String publishName;
            private Integer examPublishId;
            private Integer studentExamId;
            private Integer examId;
            private String createTime;
            private Integer wrongQuestionCount;
            private Integer revisionQuestionCount;
            private Integer state;
            private Integer isRevision;


            public static RecordsBean objectFromData(String str) {

                return new Gson().fromJson(str, RecordsBean.class);
            }

            public String getExamName() {
                return examName;
            }

            public void setExamName(String examName) {
                this.examName = examName;
            }

            public String getPublishName() {
                return publishName;
            }

            public void setPublishName(String publishName) {
                this.publishName = publishName;
            }

            public Integer getExamPublishId() {
                return examPublishId;
            }

            public void setExamPublishId(Integer examPublishId) {
                this.examPublishId = examPublishId;
            }

            public Integer getStudentExamId() {
                return studentExamId;
            }

            public void setStudentExamId(Integer studentExamId) {
                this.studentExamId = studentExamId;
            }

            public Integer getExamId() {
                return examId;
            }

            public void setExamId(Integer examId) {
                this.examId = examId;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public Integer getWrongQuestionCount() {
                return wrongQuestionCount;
            }

            public void setWrongQuestionCount(Integer wrongQuestionCount) {
                this.wrongQuestionCount = wrongQuestionCount;
            }

            public Integer getRevisionQuestionCount() {
                return revisionQuestionCount;
            }

            public void setRevisionQuestionCount(Integer revisionQuestionCount) {
                this.revisionQuestionCount = revisionQuestionCount;
            }

            public Integer getState() {
                return state;
            }

            public void setState(Integer state) {
                this.state = state;
            }

            public Integer getIsRevision() {
                return isRevision;
            }

            public void setIsRevision(Integer isRevision) {
                this.isRevision = isRevision;
            }
        }
    }
}
